home *** CD-ROM | disk | FTP | other *** search
/ Hacker's Arsenal - The Cutting Edge of Hacking / Hacker's Arsenal - The Cutting Edge of Hacking.iso / texts / misc / ip.txt < prev    next >
Encoding:
Text File  |  2001-07-11  |  7.5 KB  |  169 lines

  1. 21/04/2000.
  2.  
  3. Published on BSRF - http://blacksun.box.sk
  4. Written by WATER and Edited by R a v e N.
  5.  
  6. IP ADDRESS STRUCTURE:
  7.  
  8. Note: the terms multicast address and MSB are explained at the end.
  9.  
  10. Every station on a PSN (packet switched network) that is based on the TCP/IP
  11. protocol (your computer is one, for example. Yes, we're referring to a host
  12. that is connected to the net) must have an IP address, so it can be identified,
  13. and information can be relayed and routed to it in an orderly fashion.
  14.  
  15. an IP address consists of a 32 bit logical address. The address is divided
  16. into two fields:
  17.  
  18. 1) The network address:
  19. Assigned by InterNIC (Internet Network Information Center).
  20. In fact most ISPs (internet service providers) purchase a number of addresses
  21. and assign them individually.
  22.  
  23. 2) The station address:
  24. An address that identifies the station throughout the network. It is assigned
  25. by the network manager (administrator).
  26.  
  27. IP address structure:
  28.  
  29.     ---.---.---.--- 
  30.     ======= +++++++
  31.        ^       ^
  32.        |       |
  33.   network | station.
  34.  
  35.  Every " --- " = 8 bits.
  36.  The first 16 ===> netwrok address
  37.  The last  16 ===> station address
  38.  
  39. with 8 bits you can present from 0-255 . (binary=(2 to the power of 8)-1)
  40. Example:
  41. 11000010.01011010.00011111.01001010 (binary)
  42. 194.90.31.74 (decimal)
  43.  
  44.  
  45. IP address CLASSES :
  46.  
  47. We can classify IP addreses to 5 groups. You can distinguish them by comparing
  48. the "High Order" bits (the first four bits on the left of the address):
  49.  
  50. type  | model  | target | MSB |addr.range    |bit number| max.stations|
  51.       |        | groups |     |              |net./stat.|             |
  52. ------|--------|--------|-----|--------------|----------|-------------|
  53.   A   |N.S.S.S | ALL    |  0  | 1.0.0.0      |   24/7   | 16,777,214  |
  54.       |        | ACCEPT |     |    to        |          |             |
  55.       |        | HUGE   |     | 126.0.0.0    |          |             |
  56.       |        | CORPS  |     |              |          |             |
  57. -----------------------------------------------------------------------
  58.       |N.N.S.S | TO ALL | 10  | 128.1.00     | 16/14    | 65,543      |
  59.   B   |        | LARGE  |     |    to        |          |             |
  60.       |        | CORPS  |     | 191.254.00   |          |             |
  61. -----------------------------------------------------------------------
  62.       |N.N.N.S |TO ALOT | 110 | 192.0.1.0    | 8/22     |  254        |
  63.   C   |        |OF      |     |    to        |          |             |
  64.       |        |SMALL   |     | 223.225.254  |          |             |
  65.       |        |CORPS   |     |              |          |             |
  66. -----------------------------------------------------------------------                                                                     
  67.  D    | NONE   |MULTI-CA|1110 | 224.0.0.0     | NOT FOR |   UNKNOWN   |
  68.       |        |ST ADDR.|     |    to         | USUAL   |             |
  69.       |        |RFC-1112|     |239.255.255.255| USE     |             |
  70. -----------------------------------------------------------------------
  71.  E    | NOT FOR|EXPERIME|1,1,1,1| 240.0.0.0     |NOT FOR|  NOT FOR USE|
  72.       |  USE   |NTAL    |       |   to          |USE    |             |
  73.       |        |ADDR.   |       |254.255.255.255|       |             |
  74. -----------------------------------------------------------------------
  75.  
  76. N=NETWORK , S=STATION .
  77.  
  78. As you can see in the table above the address range 127.X.X.X is not in use.
  79. These addresses are assigned to internal use to the network device, and are
  80. used as an application tool only. For example: 127.0.0.1, the most common one,
  81. is called the loopback address - everything sent here goes directly back to
  82. you, without even traveling out of the wire.
  83. Also, some IPs are reserved for VPNs - Virtual Private Networks. These are
  84. local area networks or wide area networks that use the Internet Protocol to
  85. communicate, and each computer inside the network is assigned with an IP
  86. address. So, suppose a certain computer wants to send a data packet to
  87. another host on the network with the IP 'x', but there's also another host on
  88. the Internet that has the same IP - what happens now? So this is why you
  89. cannot use these and other forms of reserved IPs on the Internet.
  90.  
  91. EXTRA:
  92.  
  93. Distinguishing different groups:
  94.  
  95. You have to compare the first byte on the left in the address as follows:
  96.  
  97.  
  98.  
  99.  
  100. Type |    First byte  | MSB
  101.      |    in decimal  |
  102. ----------------------------
  103. A    | 1-126          | 0
  104. ----------------------------
  105. B    | 128-191        | 10
  106. ----------------------------
  107. C    | 192-223        | 110
  108. ----------------------------
  109. D    | 224-254        | 1110
  110. ----------------------------
  111. E    | 240-254        | 1111 
  112. ----------------------------
  113.  
  114.  
  115. NOTES: Yes, we know, we've left A LOT of things unexplained in this tutorial.
  116. With time, we will write more tutorials to cover these and other subjects. So
  117. in the meantime, I suggest that you go to http://blacksun.box.sk, find the
  118. tutorials page and see if there's anything else that's interesting to you.
  119. And remember - we also have a message board, so if you have any questions,
  120. feel free to post them there.
  121.  
  122.  
  123. weird shit (newbie note):
  124.  
  125. 1) Multicast: (copied from RFC 1112)
  126.    IP multicasting is the transmission of an IP datagram to a "host
  127.    group", a set of zero or more hosts identified by a single IP
  128.    destination address.  A multicast datagram is delivered to all
  129.    members of its destination host group with the same "best-efforts"
  130.    reliability as regular unicast IP datagrams, i.e., the datagram is
  131.    not guaranteed to arrive intact at all members of the destination
  132.    group or in the same order relative to other datagrams.
  133.  
  134.    The membership of a host group is dynamic; that is, hosts may join
  135.    and leave groups at any time.  There is no restriction on the
  136.    location or number of members in a host group.  A host may be a
  137.    member of more than one group at a time.  A host need not be a member
  138.    of a group to send datagrams to it.
  139.  
  140.    A host group may be permanent or transient.  A permanent group has a
  141.    well-known, administratively assigned IP address.  It is the address,
  142.    not the membership of the group, that is permanent; at any time a
  143.    permanent group may have any number of members, even zero.  Those IP
  144.    multicast addresses that are not reserved for permanent groups are
  145.    available for dynamic assignment to transient groups which exist only
  146.    as long as they have members.
  147.  
  148.    Internetwork forwarding of IP multicast datagrams(ip packets)is handled by
  149.    "multicast routers" which may be co-resident with, or separate from,
  150.    internet gateways.  A host transmits an IP multicast datagram as a
  151.    local network multicast which reaches all immediately-neighboring
  152.    members of the destination host group.  If the datagram has an IP
  153.    time-to-live greater than 1, the multicast router(s) attached to the
  154.    local network take responsibility for forwarding it towards all other
  155.    networks that have members of the destination group.  On those other
  156.    member networks that are reachable within the IP time-to-live, an
  157.    attached multicast router completes delivery by transmitting the
  158.    datagram(ip packet) as a local multicast.
  159.  
  160.    *if you donot understand the above donot worry ,it is complicated and dry
  161.    but reread it and read it again get adictionary if it helps . (it helped me!?)
  162.    Hacking is not easy!!
  163.  
  164. 2) MSB: Most Significent Bit:
  165.    In set numbers the first number on the left is the most imprtant because it
  166.    holds the highest value as opposed to the LSB=> least significent bit it
  167.    always holds the the smallest value.
  168.    Further information can be acquired from our number systems tutorial at
  169.    http://blacksun.box.sk.